$(function() {
	let form = $("#update_from");
	let btu  = $("#button_update");
	console.info(btu)
					$("#button_update").on("click",function(){
						$.post(
								"/food/orderInfo/update.do",
								form.serialize(),
								function(data){
									if(data.ok){
										toastr.success("修改成功");
										setTimeout(function(){
											window.location="/food/orderInfo/page-1.html";						     	
											},500);
									}else{
										toastr.error("修改失败："+data.message);
										window.location="/food/orderInfo/page-1.html";
									}
								},"json"
						);
						return false;
					});
});